MailPoet\Segments\SegmentsRepository S

Total Complexity 38
Dependencies 18
Dependents 44
Total lines 339
Lines of code 249
Logical lines of code 115
Comment lines 30
Methods 17
Properties 4

Methods 17

Method Rating Maintainability Complexity Lines of code
createOrUpdate()
A
43 10 49
verifyDynamicSegmentExists()
S
58 4 15
bulkDelete()
S
47 2 39
getWPUsersSegment()
S
55 3 22
getWooCommerceSegment()
S
55 3 22
updateDeletedAt()
S
60 2 14
getCountsPerType()
S
61 2 13
isNameUnique()
S
60 2 13
verifyNameIsUnique()
S
72 2 5
getSegmentCountWithMultipleFilters()
S
60 1 14
findByUpdatedScoreNotInLastDay()
S
63 1 12
getEntityClassName()
S
82 1 3
bulkTrash()
S
67 1 7
doTrash()
S
79 1 3
bulkRestore()
S
79 1 3
findByTypeNotIn()
S
68 1 8
__construct()
S
68 1 7